package pack1021.interface2;

public class App {
    private static void a(){
        Print print = new Print();
        School school = new School("宝鸡文理学院",print);
        Teacher teacher = new Teacher("张三");
        Student student = new Student("李四");
        school.print(school);
        school.print(teacher);
        school.print(student);
    }

    public static void main(String[] args) {
        a();
    }
}